﻿
var Point = function (x, y) {
    this.X = parseFloat( x);
    this.Y =parseFloat( y);
    this.MovePoint = function (p) {
        this.X += p.X;
        this.Y += p.Y;
        return this;
    };
    this.Rotation = function (sin, cos) {
        var x = this.X;
        var y = this.Y;
        this.X = x * cos - y * sin;
        this.Y = y * cos + x * sin;
    };
}


     


